﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model
{

    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("ReceiveMaterialInfo", "ReceiveMaterialInfo", new string[] { "GOODSID" })]
    [KnownType(typeof(ReceiveMaterialInfo))]
    public class ReceiveMaterialInfo
    {
        public ReceiveMaterialInfo()
        {
        }
        private int _TOPGOODSID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TOPGOODSID", System.Data.DbType.Int32)]
        public int TOPGOODSID
        {
            get { return _TOPGOODSID; }
            set { _TOPGOODSID = value; }
        }

        private int _GOODSID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSID", System.Data.DbType.Int32)]
        public int GOODSID
        {
            get { return _GOODSID; }
            set { _GOODSID = value; }
        }

        private decimal _QTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("QTY", System.Data.DbType.Decimal)]
        public decimal QTY
        {
            get { return _QTY; }
            set { _QTY = value; }
        }

        private string _TOPGOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TOPGOODSCODE", System.Data.DbType.String)]
        public string TOPGOODSCODE
        {
            get { return _TOPGOODSCODE; }
            set { _TOPGOODSCODE = value; }
        }

        private string _TOPGOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TOPGOODSNAME", System.Data.DbType.String)]
        public string TOPGOODSNAME
        {
            get { return _TOPGOODSNAME; }
            set { _TOPGOODSNAME = value; }
        }

        private string _TOPUNITNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TOPUNITNAME", System.Data.DbType.String)]
        public string TOPUNITNAME
        {
            get { return _TOPUNITNAME; }
            set { _TOPUNITNAME = value; }
        }


        private string _DGOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DGOODSCODE", System.Data.DbType.String)]
        public string DGOODSCODE
        {
            get { return _DGOODSCODE; }
            set { _DGOODSCODE = value; }
        }

        private string _DGOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DGOODSNAME", System.Data.DbType.String)]
        public string DGOODSNAME
        {
            get { return _DGOODSNAME; }
            set { _DGOODSNAME = value; }
        }
        private string _DGOODSSPEC;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DGOODSSPEC", System.Data.DbType.String)]
        public string DGOODSSPEC
        {
            get { return _DGOODSSPEC; }
            set { _DGOODSSPEC = value; }
        }
        private string _DUNITNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DUNITNAME", System.Data.DbType.String)]
        public string DUNITNAME
        {
            get { return _DUNITNAME; }
            set { _DUNITNAME = value; }
        }
        private decimal _DDPKGLOSSQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DDPKGLOSSQTY", System.Data.DbType.Decimal)]
        public decimal DDPKGLOSSQTY
        {
            get { return _DDPKGLOSSQTY; }
            set { _DDPKGLOSSQTY = value; }
        }



        private string _GOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSCODE", System.Data.DbType.String)]
        public string GOODSCODE
        {
            get { return _GOODSCODE; }
            set { _GOODSCODE = value; }
        }

        private string _GOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSNAME", System.Data.DbType.String)]
        public string GOODSNAME
        {
            get { return _GOODSNAME; }
            set { _GOODSNAME = value; }
        }

        private string _UNITNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("UNITNAME", System.Data.DbType.String)]
        public string UNITNAME
        {
            get { return _UNITNAME; }
            set { _UNITNAME = value; }
        }

        private string _LOOKUP;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOOKUP", System.Data.DbType.String)]
        public string LOOKUP
        {
            get { return _LOOKUP; }
            set { _LOOKUP = value; }
        }

        private string _DLOOKUP;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DLOOKUP", System.Data.DbType.String)]
        public string DLOOKUP
        {
            get { return _DLOOKUP; }
            set { _DLOOKUP = value; }
        }

        private string _GOODSSPEC;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSSPEC", System.Data.DbType.String)]
        public string GOODSSPEC
        {
            get { return _GOODSSPEC; }
            set { _GOODSSPEC = value; }
        }

        private decimal _ACTUALNUMBER;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ACTUALNUMBER", System.Data.DbType.Decimal)]
        public decimal ACTUALNUMBER
        {
            get { return _ACTUALNUMBER; }
            set { _ACTUALNUMBER = value; }
        }


        private int _ESTIMATENUMBER;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ESTIMATENUMBER", System.Data.DbType.Int32)]
        public int ESTIMATENUMBER
        {
            get { return _ESTIMATENUMBER; }
            set { _ESTIMATENUMBER = value; }
        }


        private decimal _SUMQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SUMQTY", System.Data.DbType.Decimal)]
        public decimal SUMQTY
        {
            get { return _SUMQTY; }
            set { _SUMQTY = value; }
        }
        private string _PURUNITNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PURUNITNAME", System.Data.DbType.String)]
        public string PURUNITNAME
        {
            get { return _PURUNITNAME; }
            set { _PURUNITNAME = value; }
        }

        private string _LOCATIONCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOCATIONCODE", System.Data.DbType.String)]
        public string LOCATIONCODE
        {
            get { return _LOCATIONCODE; }
            set { _LOCATIONCODE = value; }
        }

        private decimal _PURUNITQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PURUNITQTY", System.Data.DbType.Decimal)]
        public decimal PURUNITQTY
        {
            get { return _PURUNITQTY; }
            set { _PURUNITQTY = value; }
        }

        private decimal _ACTUALNUMBERPURUNITQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ACTUALNUMBERPURUNITQTY", System.Data.DbType.Decimal)]
        public decimal ACTUALNUMBERPURUNITQTY
        {
            get { return _ACTUALNUMBERPURUNITQTY; }
            set { _ACTUALNUMBERPURUNITQTY = value; }
        }

    }
}
